//
//  LMDiscoverViewController.m
//  李明微博
//
//  Created by apple on 15/12/4.
//  Copyright (c) 2015年 李明. All rights reserved.
//

#import "LMDiscoverViewController.h"
#import "LMSearchBar.h"


@interface LMDiscoverViewController ()


@property (nonatomic,retain)LMSearchBar *searchBar;
@end

@implementation LMDiscoverViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
   self.searchBar = [[LMSearchBar  alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, 35)];

    self.navigationItem.titleView = self.searchBar;
}


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    [self.searchBar resignFirstResponder];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
